projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92b50c5
)
singleselection: Fix a memory leak
author
Mohammed Sadiq
<sadiq@sadiqpk.org>
Sun, 22 Mar 2020 05:12:01 +0000
(10:42 +0530)
committer
Mohammed Sadiq
<sadiq@sadiqpk.org>
Sun, 22 Mar 2020 08:35:56 +0000
(14:05 +0530)
gtk/gtksingleselection.c
patch
|
blob
|
history
diff --git
a/gtk/gtksingleselection.c
b/gtk/gtksingleselection.c
index f2d0d47f1c367a9cbb6cdd7788ba7c8ee33eae90..63db37d0de5fdc513ec25123716939e670cf5b78 100644
(file)
--- a/
gtk/gtksingleselection.c
+++ b/
gtk/gtksingleselection.c
@@
-240,8
+240,11
@@
gtk_single_selection_items_changed_cb (GListModel *model,
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SELECTED]);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SELECTED_ITEM]);
}
+
+ g_object_unref (item);
break;
}
+ g_object_unref (item);
}
if (i == added)
{